# -*- coding: utf-8 -*-
# All Rights Reserved 
# @Time    : 2023/10/2522:31
# @File    : app.py
__author__ = 'Small Fu'

import os
from flask import Flask, render_template

app = Flask(__name__)


@app.route('/')
def display_images():
    image_list = [f'./static/img/{i}' for i in os.listdir('static/img')]  # 在此处添加你的图片文件名
    return render_template('index.html', image_list=image_list)


if __name__ == '__main__':
    app.run(host='0.0.0.0',port=8080)
